package com.gitee.wsl.compose.ui.container.multiselection

data class DragSelectionInfo(
    val selectionBox: SelectionBox? = null,
    val isDragging: Boolean = false
)

data class SelectionBox(
    val x: Float = 0F,
    val y: Float = 0F,
    val width: Float = 0F,
    val height: Float = 0F
)

fun doBoxesOverlap(box1: SelectionBox, box2: SelectionBox): Boolean {
    return box1.x < box2.x + box2.width &&
            box1.x + box1.width > box2.x &&
            box1.y < box2.y + box2.height &&
            box1.y + box1.height > box2.y
}